﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020008C5 RID: 2245
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class HCFPLCGOGEC : IMessage<HCFPLCGOGEC>, IMessage, IEquatable<HCFPLCGOGEC>, IDeepCloneable<HCFPLCGOGEC>, IBufferMessage
	{
		// Token: 0x17001C76 RID: 7286
		// (get) Token: 0x060064CE RID: 25806 RVA: 0x0010EE80 File Offset: 0x0010D080
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<HCFPLCGOGEC> Parser
		{
			get
			{
				return HCFPLCGOGEC._parser;
			}
		}

		// Token: 0x17001C77 RID: 7287
		// (get) Token: 0x060064CF RID: 25807 RVA: 0x0010EE87 File Offset: 0x0010D087
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return HCFPLCGOGECReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001C78 RID: 7288
		// (get) Token: 0x060064D0 RID: 25808 RVA: 0x0010EE99 File Offset: 0x0010D099
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return HCFPLCGOGEC.Descriptor;
			}
		}

		// Token: 0x060064D1 RID: 25809 RVA: 0x0010EEA0 File Offset: 0x0010D0A0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public HCFPLCGOGEC()
		{
		}

		// Token: 0x060064D2 RID: 25810 RVA: 0x0010EEA8 File Offset: 0x0010D0A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public HCFPLCGOGEC(HCFPLCGOGEC other) : this()
		{
			this.formulaId_ = other.formulaId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060064D3 RID: 25811 RVA: 0x0010EECD File Offset: 0x0010D0CD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public HCFPLCGOGEC Clone()
		{
			return new HCFPLCGOGEC(this);
		}

		// Token: 0x17001C79 RID: 7289
		// (get) Token: 0x060064D4 RID: 25812 RVA: 0x0010EED5 File Offset: 0x0010D0D5
		// (set) Token: 0x060064D5 RID: 25813 RVA: 0x0010EEDD File Offset: 0x0010D0DD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint FormulaId
		{
			get
			{
				return this.formulaId_;
			}
			set
			{
				this.formulaId_ = value;
			}
		}

		// Token: 0x060064D6 RID: 25814 RVA: 0x0010EEE6 File Offset: 0x0010D0E6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as HCFPLCGOGEC);
		}

		// Token: 0x060064D7 RID: 25815 RVA: 0x0010EEF4 File Offset: 0x0010D0F4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(HCFPLCGOGEC other)
		{
			return other != null && (other == this || (this.FormulaId == other.FormulaId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060064D8 RID: 25816 RVA: 0x0010EF24 File Offset: 0x0010D124
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.FormulaId != 0U)
			{
				num ^= this.FormulaId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060064D9 RID: 25817 RVA: 0x0010EF63 File Offset: 0x0010D163
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060064DA RID: 25818 RVA: 0x0010EF6B File Offset: 0x0010D16B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060064DB RID: 25819 RVA: 0x0010EF74 File Offset: 0x0010D174
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.FormulaId != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.FormulaId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060064DC RID: 25820 RVA: 0x0010EFA8 File Offset: 0x0010D1A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.FormulaId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.FormulaId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060064DD RID: 25821 RVA: 0x0010EFE6 File Offset: 0x0010D1E6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(HCFPLCGOGEC other)
		{
			if (other == null)
			{
				return;
			}
			if (other.FormulaId != 0U)
			{
				this.FormulaId = other.FormulaId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060064DE RID: 25822 RVA: 0x0010F017 File Offset: 0x0010D217
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060064DF RID: 25823 RVA: 0x0010F020 File Offset: 0x0010D220
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 16U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.FormulaId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04002685 RID: 9861
		private static readonly MessageParser<HCFPLCGOGEC> _parser = new MessageParser<HCFPLCGOGEC>(() => new HCFPLCGOGEC());

		// Token: 0x04002686 RID: 9862
		private UnknownFieldSet _unknownFields;

		// Token: 0x04002687 RID: 9863
		public const int FormulaIdFieldNumber = 2;

		// Token: 0x04002688 RID: 9864
		private uint formulaId_;
	}
}
